home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CinE CD 6
/
CinE CD ROM 06.iso
/
pc
/
cinecd.dir
/
00002_Script_2
< prev
next >
Wrap
Text File
|
1996-06-22
|
2KB
|
84 lines
global gNumFilms, gmachine, grootpathname, gseparator, gQTpresent, database
global gfilmsperpage, gpage, gnumpages, gdata, gscale, gmode
on startmovie
Init
cursor (4)
--play movie "MAIN"
end startmovie
on Init
global gsoundEnabled, DEBUG
set gsoundEnabled = TRUE
set DEBUG = 0
set gscale = 1
--set gmode = "auto"
set the timeoutLength to 5 * 60
set the timeoutPlay = TRUE
--determine machine type
set gmachine = determine_machine_type ()
--define separator for mac/pc
set gseparator = separator (gmachine)
-- get the pathname of the projector
put the pathname into grootpathname
-- read the index file
if gmachine = "mac" then
read_index_file (the pathname & "INDEXMAC.DOC")
else
read_index_file (the pathname & "INDEXPC.DOC")
end if
-- there are 8 posters per index page
set gfilmsperpage = 8
-- make the database based on index file
makedatabase the number of cast "database"
-- initialize index page number
set gpage = 1
--determine and set the number of index pages
--set gnumpages = gnumfilms / gfilmsperpage
--if (gnumfilms mod gfilmsperpage) then
--set gnumpages = gnumpages + 1
--end if
--check if Quicktime is present and set the global variable
set gQTpresent = the quicktimepresent
if not gQTpresent then
alert "Vous devez installer le gestionnaire Quicktime d'Apple Computer Inc. pour pouvoir visualiser les bandes annonces!"
end if
end Init
on determine_machine_type
if the machineType < 256 then
return "mac"
else
return "pc"
end if
end determine_machine_type
on separator machine_type
if machine_type = "pc" then
return "\"
else
return ":"
end if
end separator
on read_index_file fname
put FileIO (mnew, "read", fname) into gdata
if (gdata < 0) then
alert ("Fichier INDEX non-trouvΘ, au revoir!")
quit
end if
set the text of cast the number of cast "database" = gdata (mreadfile)
gdata (mdispose)
end read_index_file